package sys

import "gitee.com/wcs2/common/enums"

type eMsgCodeStruct struct {
	CODE_BINDING_TASK_TOO_LONG         enums.PositionEnum
	SCANNER_CALLBACK_EXCEPTION         enums.PositionEnum
	AGV_TL_TASK_TOO_LONG               enums.PositionEnum
	RCS_CONNECT_EXCEPTION              enums.PositionEnum
	DOOR_THROUGH_TOO_LONG              enums.PositionEnum
	RCS_CALLBACK_EXCEPTION             enums.PositionEnum
	PRINTER_TASK_TOO_LONG              enums.PositionEnum
	LABELING_TASK_TOO_LONG             enums.PositionEnum
	ROBO_ACT_TASK_TOO_LONG             enums.PositionEnum
	TL_TASK_TOO_LONG                   enums.PositionEnum
	DOOR_ACTION_REQ_FAIL               enums.PositionEnum
	TL_ACTION_REQ_FAIL                 enums.PositionEnum
	TL_AGV_RECEIVED_NTF_FAIL           enums.PositionEnum
	TL_BOX_DIRECTION_NTF_FAIL          enums.PositionEnum
	TL_CALLBACK_EXCEPTION              enums.PositionEnum
	TL_LREQ_EXCEPTION                  enums.PositionEnum
	LABELING_REQ_FAIL                  enums.PositionEnum
	LABELBER_CALLBACK_EXCEPTION        enums.PositionEnum
	PRINT_REQ_FAIL                     enums.PositionEnum
	PRINTER_CALLBACK_EXCEPTION         enums.PositionEnum
	ROBO_ACTION_REQ_FAIL               enums.PositionEnum
	ROBO_SET_CONTAINER_STATUS_FAIL     enums.PositionEnum
	ROBO_CONTAINER_STATUS_INCONSISTENT enums.PositionEnum
	ROBO_CALLBACK_EXCEPTION            enums.PositionEnum
}

//	异常设备枚举
var EMsgCodeEnum = &eMsgCodeStruct{
	CODE_BINDING_TASK_TOO_LONG: enums.PositionStruct{
		Code:    "CODE_BINDING_TASK_TOO_LONG",
		Des:     "箱码绑定用时过长",
		PlcCode: "4001",
	}, SCANNER_CALLBACK_EXCEPTION: enums.PositionStruct{
		Code:    "SCANNER_CALLBACK_EXCEPTION",
		Des:     "扫码机回调处理异常",
		PlcCode: "4002",
	}, AGV_TL_TASK_TOO_LONG: enums.PositionStruct{
		Code:    "AGV_TL_TASK_TOO_LONG",
		Des:     "滚筒机器人接送箱用时过长",
		PlcCode: "7110",
	}, RCS_CONNECT_EXCEPTION: enums.PositionStruct{
		Code:    "RCS_CONNECT_EXCEPTION",
		Des:     "RCS连接异常",
		PlcCode: "4003",
	}, DOOR_THROUGH_TOO_LONG: enums.PositionStruct{
		Code:    "DOOR_THROUGH_TOO_LONG",
		Des:     "小车通过自动门用时过长",
		PlcCode: "9001",
	}, RCS_CALLBACK_EXCEPTION: enums.PositionStruct{
		Code:    "RCS_CALLBACK_EXCEPTION",
		Des:     "RCS任务回调异常",
		PlcCode: "4004",
	}, PRINTER_TASK_TOO_LONG: enums.PositionStruct{
		Code:    "PRINTER_TASK_TOO_LONG",
		Des:     "打印机打印用时过长",
		PlcCode: "3001",
	}, LABELING_TASK_TOO_LONG: enums.PositionStruct{
		Code:    "LABELING_TASK_TOO_LONG",
		Des:     "自动贴标任务用时过长",
		PlcCode: "5001",
	}, ROBO_ACT_TASK_TOO_LONG: enums.PositionStruct{
		Code:    "ROBO_ACT_TASK_TOO_LONG",
		Des:     "机械臂任务用时过长",
		PlcCode: "8001",
	}, TL_TASK_TOO_LONG: enums.PositionStruct{
		Code:    "TL_TASK_TOO_LONG",
		Des:     "输送线接送箱任务用时过长",
		PlcCode: "2001",
	}, DOOR_ACTION_REQ_FAIL: enums.PositionStruct{
		Code:    "DOOR_ACTION_REQ_FAIL",
		Des:     "请求自动门执行动作失败",
		PlcCode: "9002",
	}, TL_ACTION_REQ_FAIL: enums.PositionStruct{
		Code:    "TL_ACTION_REQ_FAIL",
		Des:     "请求输送线执行动作失败",
		PlcCode: "2002",
	}, TL_AGV_RECEIVED_NTF_FAIL: enums.PositionStruct{
		Code:    "TL_AGV_RECEIVED_NTF_FAIL",
		Des:     "通知输送线小车接箱完毕失败",
		PlcCode: "2003",
	}, TL_BOX_DIRECTION_NTF_FAIL: enums.PositionStruct{
		Code:    "TL_BOX_DIRECTION_NTF_FAIL",
		Des:     "通知输送线抓袋位箱子离开失败",
		PlcCode: "2004",
	}, TL_CALLBACK_EXCEPTION: enums.PositionStruct{
		Code:    "TL_CALLBACK_EXCEPTION",
		Des:     "输送线任务回调异常",
		PlcCode: "2005",
	}, TL_LREQ_EXCEPTION: enums.PositionStruct{
		Code:    "TL_LREQ_EXCEPTION",
		Des:     "输送线抓袋位异常",
		PlcCode: "2006",
	}, LABELING_REQ_FAIL: enums.PositionStruct{
		Code:    "LABELING_REQ_FAIL",
		Des:     "请求自动贴标机贴标失败",
		PlcCode: "5002",
	}, LABELBER_CALLBACK_EXCEPTION: enums.PositionStruct{
		Code:    "LABELBER_CALLBACK_EXCEPTION",
		Des:     "自动贴标任务执行回调异常",
		PlcCode: "5003",
	}, PRINT_REQ_FAIL: enums.PositionStruct{
		Code:    "PRINT_REQ_FAIL",
		Des:     "请求打印机进行打印操作失败",
		PlcCode: "3002",
	}, PRINTER_CALLBACK_EXCEPTION: enums.PositionStruct{
		Code:    "PRINTER_CALLBACK_EXCEPTION",
		Des:     "打印机任务回调异常",
		PlcCode: "3003",
	}, ROBO_ACTION_REQ_FAIL: enums.PositionStruct{
		Code:    "ROBO_ACTION_REQ_FAIL",
		Des:     "请求机械臂执行任务失败",
		PlcCode: "8002",
	}, ROBO_SET_CONTAINER_STATUS_FAIL: enums.PositionStruct{
		Code:    "ROBO_SET_CONTAINER_STATUS_FAIL",
		Des:     "请求同步机械臂操作位信息失败",
		PlcCode: "8003",
	}, ROBO_CONTAINER_STATUS_INCONSISTENT: enums.PositionStruct{
		Code:    "ROBO_CONTAINER_STATUS_INCONSISTENT",
		Des:     "机械臂容器状态数据不一致",
		PlcCode: "8004",
	}, ROBO_CALLBACK_EXCEPTION: enums.PositionStruct{
		Code:    "ROBO_CALLBACK_EXCEPTION",
		Des:     "机械臂任务执行回调异常",
		PlcCode: "8005",
	},
}
